Use mass_action (Transaction) for saving the search cache to the cache.db

Also changed the File encoding of the btn.py to UTF-8