First got the database working with flast restful.