How to move content(in my case text file which acts as DB) from installation package to local storage

Hi,
i am very new to ionic framework. For my project, i need to attach the DB to for the application package. after installation it has to move to local storage and i have to perform updates on that file.
i have idea on how to perform operations on file using ngCordova file API. but i dont have clue on how to push the cotent of a package to local storage.
can someone help on this.

thanks
Venkat