updating search to include standard spelling and adding database cleanup function