sends favorites to database