Fixed getAllHistory() to now retrun an ArrayList<String> which can be
accessed quickly this function should be run whenever a new command
string is entered into the database