simplify the db config