added the RPC call to save things to the database