Fixed safe entry remove

+ When deleting an entry from the database the last entry in the
database will replace it (just changes the ID), so that selecting random
archives doesn't fail