             query = query.order(self.init().buildExpressiblesForOrder(orders!))
         }
         
-        for row in try! db.prepare(query) {
-            let model = self.init()
-            model.buildFromRow(row: row)
-            results.append(model)
-        }
+        do{
+            for row in try db.prepare(query) {
+                let model = self.init()
+                model.buildFromRow(row: row)
+                results.append(model)
+            }
+        }catch{
+            LogError(error)
+        }
+        
         
         return results
     }

            throw error
        }
    }

    class func deleteAll() throws{
        do{
            try db.run(Table(nameOfTable).delete())

        
        return findAll(Expression<Bool?>(predicate),orders:orders)
    }
    
    
    class func findAll(_ predicate: SQLite.Expression<Bool?>,orders: [Expressible]? = nil)->Array<DBModel>?{
        
