Fixed double entries in database