Switch file base to sqlite database