Neural homologies: principles, databases and modeling