Update domain class with db metadata