Home Technology Optimising Database Queries for Full Stack Applications with SQL and NoSQL