set up database connection for queries. function calls and passing data
works. data is not received from the database, though.