adding sqlite local storage to client, simplifying messaging