RESTful webservice for manage a collection of photos (nodejs+postgres)