Table not loading properly

Since you have a .then() function to handle the Promise returned by the query, the use of await is incorrect and will lead to errors and unpredictable results. You should delete await from both query statements.