Learning repository of databases