add example config file
load config for database connections from a config yaml file
adapt code to not use deprecated function - defined