Am I mistaken, or is there on slide 15 a declaration of a function called db that accepts no parameters and returns a DatabaseConnection, rather than a definition of a DatabaseConnection object called db?

Or in other words, shouldn't:

DatabaseConnection db();

be replaced with:

DatabaseConnection db;

?