finishing database population script