list comp is enough
make all cursors share a conn
rewrote the ConnContext into Database
the arg, database, is not necessary actually