update media table in db