Auto-select DB name fields when clicked