Adjust database and cmcid select