refactoring
Working autocreate of tables
add encrypt/decrypt, confirmation and saving to db