adds document insertion and finding documents using Gson streams