Fixed kill connections db task for postgres < 9.2