transform db complite
prepare diagram