The database and photo images are backed up when you sync your iPhone with Apple's iTunes Application.