fix dropTable() and introduce tableExists()
adding unit tests for encryption data migration