reading db config from file