add support for postgresql databases
interface changes