made minutes and integer and updated queries