Write SecureDB and update testdriver