log file added
Updated log file
Full functional code that updates to postgres db
Connection object creation method made static