Wrapped fetchAll in try block to stop some errors