registering the app and creating the models