cache platform in a local variable
add support for the IDENTITY generator strategy

Tested and implemented for postgreSQL only.