refactored, coded, header detection and reader for both PostgreSQL and Oracle
initial diff for Oracle