Simple database query scripts