Added detection for postgres postgis
Fixed backup and restore for postgresql