preparing db export