Add and delete entries to the database