add RESTful api and remote DB