Bug 998956 - [MediaDB] upgrade the timestamp for each db record

WIP