added config option for database connection - #313  /  #314