-Doing database connection and closing using @before_request and
@teardown_request. Kept old db connection code in the show view
in case anything goes wonky.
-The wonders of Flask.g