Add identityToSql method to serialize user-spec only SQL
getIdentitySQL