Where do I put server side code

thanks. In he first article it says backend can’t call front end functions such as wixdata.user. Does that include wixdata.query and wixdata.insert?