Refactored packages. Added SQLite exporting