Added encrypted database and storing user, location and message data in.