add functions to queries.js regarding favorite number