add field annotation to annotate external libraries as serializable [ci skip]
improve exception handling
more changes for sql support [ci skip]