Where does the sqlite database for iPhone is stored with the application
<p>I want to know when we install an application where does the database of the application resides. Like Does it resides in the application bundle or sandbox.</p>

<p>Also when we upgrade it why does not it affects the existing database. For example, if I make some changes to database table and reinstall it, it still uses the previous table. So how does it actually works at the background.</p>
