Simplifying DB update routine for media