bugfix: make sure we do not insert 0000-00-00 on topping up a running database (a bug for strict MySQL 5.6)