working sqlite database, querying database from usr input