using select sqlite_master to find out if tables exist
creating tables in SQL