BAC-1006: script doesn't work with -db parameter