move away from file-based object serialization

Store all data in database to be more independent from PTE.
This keeps the old interface in the FavFile class for now.
rename FavFile to FavDB