Fixed NotImplementedError on saving sqla models