Make API more precise on dates, and add todos
Add tests for some query errors
Update todos