Tests for encryption
Factoring out driving the databases
Removing random django dependency
Adding database tests