favorites button working in db level