updated pMain db install sql