Database population SQL script