db.connect returns a cursor apparently, fix message