Changed date format in insert statement, and removed debug lines.