For some reason, self::$already_connected does not seem to be updated
correctly after the db is created.

Declaring it in the function is significantly faster.