Multi-result set support

Added support for multi-result set database queries