rebuild fetchall fetchone