simple REST API with DB access