Initialized the implicit objects ("session" / "database") in a cleaner way.