Basic database layout and routing