script to populate databases