added config option for database connection - closes #314