Fix querying pending alerts.
Fix querying pending alerts.

This commit retrieves the correct pending alerts
and introduces a workaround to a bug in the SQL library.

brancz/alertmanager,tinytub/alertmanager,Kellel/alertmanager,GoogleCloudPlatform/alertmanager,tyrken/alertmanager,tyrken/alertmanager,sarathsp06/alertmanager,novilabs/alertmanager,tbouvet/alertmanager,tinytub/alertmanager,Aloomaio/alertmanager,ericgerling/alertmanager,brancz/alertmanager,Kellel/alertmanager,tinytub/alertmanager,joehandzik/alertmanager,tbouvet/alertmanager,pdf/alertmanager,joehandzik/alertmanager,Aloomaio/alertmanager,brunoqc/alertmanager,GoogleCloudPlatform/alertmanager,novilabs/alertmanager,novilabs/alertmanager,Kellel/alertmanager,pdf/alertmanager,tyrken/alertmanager,MonsantoCo/alertmanager,prometheus/alertmanager,tbouvet/alertmanager,brunoqc/alertmanager,tyrken/alertmanager,prometheus/alertmanager,GoogleCloudPlatform/alertmanager,MonsantoCo/alertmanager,prometheus/alertmanager,brunoqc/alertmanager,ericgerling/alertmanager,novilabs/alertmanager,Aloomaio/alertmanager,sarathsp06/alertmanager,sarathsp06/alertmanager,brancz/alertmanager,ericgerling/alertmanager,brancz/alertmanager,pdf/alertmanager,MonsantoCo/alertmanager,brunoqc/alertmanager,MonsantoCo/alertmanager,prometheus/alertmanager,pdf/alertmanager,GoogleCloudPlatform/alertmanager,joehandzik/alertmanager