Have you ever seen "integrated logging and debugging"? This concept is quite NOT familiar and was hard to implement until recently. What happened recently? MSSQL Server implemented the so called "context variables" and now all the major databases have it. I mean Oracle, PostgreSQL and, finally, MSSQL Server. Have you thought why and how to use it? Well, there are some good ways to do that! Again, the "black sheep" is MSSQL Server as it has the weakest implementation, but nonetheless it still has great opportunities to be explored. Implementing ILDDb (Integrated Logging and Debugging with the Database) would greatly enhance the robustness of the app and the ability to efficiently find even small troubles. But you will NOT be able to do that while using ORMs or it will be difficult enough to do so. It is the moment to think to a different interaction with the database. The "traditional" way of thinking is not enough these days anymore!