stored queries for test databases