Switched database from sqlite format to sqlalchemy