Add optional db authentication to default code generator runner

This was a small but important oversight in 2.0-RC1. It was not possible to use the default code-generator with a database that required authentication. I suggest we consider this a fix and accept it for 2.0-RC2. Without it the default code generator runner will not be usable by most people.

review by @szeiger