Added queries for database testing