Change date type in database to datetime