db config working