Modify objecs for sqlAlchemy