Added Query functions

Added sqliteexecute function which retrieves the data from the database