Implemented delete() in database class