Added add to favorite functionality. Only works if you are connected to the database