updated queries for timer