Implemented various remove functions in db