For all database api related methods and utility functions
Holds state with data linking jsonrpc call ids and params for pattern matching in the handler
Starts the WebSocket server for given ws URL. Received messages are forwarded to the sender pid