taking query directly from request for insert_favorite