Read the databases from a directory