add database generation script