add update sql schema version functions to schema model