fixed database selector to select which database one wants to use.