Added optional configPath parameter.

This allows the database configuration file to be hosted outside of the vendor folder.