sql calls through dbquery method