fire the query on respective database and not master.