Maybe having a Hash with keys as database would make easier to find when a user/password has changed for the same database. Also we would not have 2+ credentials for the same database, AFIAK you only can have one credential per database right?