Java tool to export SQLite data respecting database constraints