moved manager logic to DirectPostgresqlmanager.