use current_app to create tables