Revised to fetchAll() usage