compatible now with pysqlite2