Fixes broken export database method [#1019 state:resolved]
(cherry picked from commit a4ebd0a)