In the below two code snippets, the first one works fine where I create a connection object that gets imported thoughout the app but its not in the create_app() method. its