implemented remove method in database class