set up persistence, controllers, webapp