                 t.column(ngrams.n)
             })
             
+            _ = try? db.run(profiles.table.drop(ifExists: true))
+            
             // Create Profiles table
             try? db.run(profiles.table.create(ifNotExists: true) { t in
                 t.column(profiles.profileId, primaryKey: .autoincrement)
                 t.column(profiles.name)
                 t.column(profiles.linksTo, defaultValue: 0)
             })
-            
-            //try? db.run(profiles.delete())
             
             // Insert the Default profile into the Profiles table if it doesn't exist
             

            resultSet = recommendationQuery(user_profile: userProfile as! String,
                                n: 3, pattern: "\(word1) \(word2) \(current_input)%",
                                words: words, result_set: resultSet)
            // *******************
            for n in [2,3] {
                resultSet = recommendationQuery(user_profile: userProfile as! String,
                                n: n, pattern: "\(word2) \(current_input)%",

    }
    
    func recommendWords(word1: String = "", word2: String = "", current_input: String)->Set<String>{
        // POSSIBLE PATTERNS
        // 3:      "\(word1) \(word2) \(current_input)%"
        // 3:      "% \(word2) \(current_input)%" ********* <--- maybe not
