Factor database stuff out into aludel.