Fixed database for duplicate date