Restructured database access