Database population script IS working