Data layer architecture