Parse Amazon AWS S3 logs from a folder and insert records into Postgres database