implemented fetchall transactions