refactoring: separated out identity key and prekey generation from encrypted database generation
refactoring complete