Delete from database broken