loadContracts

Save wallet contract state to the database. Called by saveWalletTo. Assumes that the datalock is taken