Generates the db config directly