write to db every 20000 rows
Merge origin/master