initial commit of api v2
added db retriever
resolved flicts