Added appropriate methods to connect

to database and query results