Add Connection and Query to Database