Is it possible to use slide name as variable for sqlite table name?

Hello there! I’m trying to develop an app for public transportation in my city. And want to use slides, two for each page to be precise. So the ting that I need is to use slide name as a variable for a table name, so that I could pull correct data for each slide.
Could anyone give me some directions?
Each table name is a bus stop name, with two columns in it, first column is schedule when bus is going from A to B, and second column is schedule from B to A.
Thanks a lot!