Updating DB with dynamic changes