How to query a staging database?

How to query a staging database?