rewrite fillDb script, gridControl fix