updated SQL file

changed datatypes for dates from int to date