Added functionality for resources in the db_api and added the rd_api and
the functionality there