add database, basic Host model, RESTful API