add config 'databases' to limit total database number, default 16 databases allowed