add database support for fav