basic functionaltiy for adding records, and for checking for existance of phrase already