Explained: I have a huge project that is built over a solid framework where functions that has to connect to the database works differently depending on a few conditions (in simple terms we can just say its a true/false boolean). In simple terms, when it access the DB, it access either as web service or a direct mysql connection.Explained: I have a huge project that is built