Changed dbName to a textfield