change DB struct

add varity type, remove strange attribute table, add images and nodes
tables