ENH: add more postgres support - started adding some oracle code