SQL commit
Fixed for invalid hours indexing