Reducing Layered Database Applications to their Essence through Vertical Integration