Storing controller and queries inside database would increase the efficiency and speed of the backend.
Currently when backend receives a request, it goes to controller which takes query and then send the value and full query as text to the database which executes the query. If queries are stored in database, we would just need to link the database procedure or function in the backend so we would send less data from backend to database which would increase the speed and efficiency.
This has to be done after our project is finalized since the current setup is well suited and efficient for development.