closed #295 resolved sqlalchemy different session problems by detaching and retaching objects from the different sessions