refactored, adde more comments, moved rdbms specific syntax to other packges. now defaults to postgres syntax.