modified the db_manager and rp_action for new models