Fixed null pointer in favorites db helerp