Deleting a timesheet and timeentry note leaves orphan and executes a invalid query which caused performance issues on the database