database script for population of tables