get parents from Cubic
write scan result into db
scan result is array