fix DROP DATABASE command to be idempotent