fully implementation of mongodb to sql export