Generating a RESTful web service from an existing database