added putpubkey method
Merge branch 'databaseMigration' of https://github.com/TimWSpence/CloudShare into databaseMigration