Moved structure to sqlite db