renaming interval to chunk_length as interval is a reserved keyword in mysql