creating script to autopopulate database