fix date, delete relation table