Using db.app = app removes dependency on test_request_context(). Specified website for client, else throws IntegrityError.