Update dbconnection.js

updated queries