Finished the queries in user.js