Change granting of db user privileges to expect list of databases for each user.