added methods for syncing xml files with db - hooked into first run