Finished resolving run time errors from the postgre reader