Make modedb configurable