Pure Python flexible database engine