SyntaxFix
Write A Post
Hire A Developer
Questions
The easiest way is to handle all of your database interactions in its own module that you export to your routes. If your route has no context of the database then SQL can't touch it anyway.