set up app factory. still working on getting other data and implementing flask-restful