get schema paths from chache or db