better db loading order, fixed missing transdb definition