now querying database with 1 minute sections at a time