added sql error messages for the rest of the pages