Including Mauricio's changes
Adding support for chipper, better boundry checks on time range, SQL loading, etc.