Database and API for enhancing history and clipboard processing