Remove Old SQL Query in favour of JSON RPC Method