* save all plugin databases on 'beforeunload'