Updated KeystoreDB to use Django

Began migrating the KeystoreDB class to Django, but the app still
crashes when trying to write through to the backing database, so it is
still largely untested.