Fixes broken export database method [#1019 state:resolved]