deletion implemented, saving to database works properly