FIX: will work for postgreSQL

subsites will fail with this module if running on PostgrSQL
Merge pull request #54 from torleif/patch-1

FIX: will work for postgreSQL