scripts and class work populating database