NXP-9879: factor column lookup
NXP-10894: Improved SEQUENCE support, use proper JDBC type to avoid database casts and use indexes