Database querying and updating added

App now contacts home server and stores copies of new identities and
their respective words in the database.