change the db config with decorator