Fix db layer instances lookup