Run query to database query ucs database