fixed and added database connection to the request/recipient activities