fix for POSIXct class columns eventDateTime insertDateTime which can cause problems
working and refactor getPRTables.R