Added support to versioning using SQLAlchemy, not finished yet