changed the way app starts in order to create the db