Added functionality to merge items from the database and configuration files.