separated the test schema creation code and the actual database module
now returning a status code from CryptoProtocol.register_device in the protocol module