init favorite , finish db