Yes that is what I was suggesting you in simple terms. Actually you are trying to create ODBC like miniature thing