fixing some errors with the database (duplicate rows)