Make the REST API use the database directly, instead of accessing it through the web service.