load metadata throu sql