added function to send queries to database

beginning to work on db connection