Updating db def