FIX: bug with database dump