Adds basic framework for api calls to the database