more efficient db structure loading