Improve db mass update
wip