with separated db config