The Queries have not changed from Photopost 3.3 to 4.0.
I have used the same main index hack for 3 versions of Photopost now.
Do you have some sort of error code to post? You need to post more accurate information or either PM me and I can see what I can do for you.