Run query to database query common shareddb