update .gitignore, update db initiation flaw in grads.py, update grad_table template