wrap up DB parser mid tier code