fixed postgres module to work with __ALL__