Fixed duplicate entry bug in the database