Limited allowed dataset and sqlalchemy errors due to strange bugs caused by latest versions