Automatic restful service wrapper for postgres