populate db, build one level api