Added database query table view