Added functions to make a diff/changelog with dictionaries
Added main function for adding from database