You shouldnt lose you .db's during an upgrade on a *nix system. On a windows system because you have to uninstall Anope first you should back up the .db files and your services.conf file from the Anope\data folder before upgrading. Then simply restore them afterwards.
[Edited on 15-10-2006 by Jobe1986]