implemented db config structure