Switching to sqlite db