updated database selector