#721: Define database configurations in 'config.py'

Resolves #721.