[G1 Android Development] ThR1LL:
I'm having problems restoring market db with backup for root. Restoring apks and data is fine but when I restore market db my market stops working and has a FC's everytime I try to open it.

I/ARMAssembler( 149): generated scanline__00000077:03515104_00001001_00000000 [ 64 ipp] (84 ins) at [0x1ea970:0x1eaac0] in 793457 ns
D/dalvikvm( 523): Trying to load lib /system/lib/libjni_latinime.so 0x438cf4f8
I/ActivityManager( 149): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.vending/.AssetBrowserActivity }
D/dalvikvm( 523): Added shared lib /system/lib/libjni_latinime.so 0x438cf4f8
I/ActivityManager( 149): Start proc com.android.vending for activity com.android.vending/.AssetBrowserActivity: pid=529 uid=10031 gids={3003}
I/ActivityThread( 529): Publishing provider com.android.vending.SuggestionsProvider: com.android.vending.SuggestionsProvider
E/Database( 529): Failure 1 (duplicate column name: referrer) on 0x1af180 when preparing 'ALTER TABLE assets10 ADD COLUMN referrer TEXT'.
D/AndroidRuntime( 529): Shutting down VM
W/dalvikvm( 529): threadid=3: thread exiting with uncaught exception (group=0x4001e1c0)
E/AndroidRuntime( 529): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 529): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.vending/com.android.vending.AssetBrowserActivity}: android.database.sqlite.SQLiteException: duplicate column name: referrer: ALTER TABLE assets10 ADD COLUMN referrer TEXT
E/AndroidRuntime( 529): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
E/AndroidRuntime( 529): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
E/AndroidRuntime( 529): at android.app.ActivityThread.access$2100(ActivityThread.java:116)
E/AndroidRuntime( 529): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 529): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 529): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 529): at android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 529): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 529): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 529): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 529): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime( 529): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 529): Caused by: android.database.sqlite.SQLiteException: duplicate column name: referrer: ALTER TABLE assets10 ADD COLUMN referrer TEXT
E/AndroidRuntime( 529): at android.database.sqlite.SQLiteDatabase.native_execSQL(Native Method)
E/AndroidRuntime( 529): at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1497)
E/AndroidRuntime( 529): at com.android.vending.api.LocalAssetDatabase$DatabaseHelper.onUpgrade(LocalAssetDatabase.java:918)
E/AndroidRuntime( 529): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:108)
E/AndroidRuntime( 529): at com.android.vending.api.LocalAssetDatabase.<init>(LocalAssetDatabase.java:116)
E/AndroidRuntime( 529): at com.android.vending.ServiceLocator.getLocalAssetDatabase(ServiceLocator.java:107)
E/AndroidRuntime( 529): at com.android.vending.BaseActivity.onCreate(BaseActivity.java:516)
E/AndroidRuntime( 529): at com.android.vending.AssetBrowserActivity.onCreate(AssetBrowserActivity.java:104)
E/AndroidRuntime( 529): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
E/AndroidRuntime( 529): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
E/AndroidRuntime( 529): ... 11 more
I/Process ( 149): Sending signal. PID: 529 SIG: 3
I/dalvikvm( 529): threadid=7: reacting to signal 3
I/dalvikvm( 529): Wrote stack trace to '/data/anr/traces.txt'
I/DumpStateReceiver( 149): Added state dump to 1 crashes
I/dalvikvm( 202): dvmChangeThreadSchedulerGroup thread=345: (null)
I/dalvikvm( 202): dvmChangeThreadSchedulerGroup thread=345: bg_non_interactive
D/dalvikvm( 202): GC(2) freed 4831 objects / 273560 bytes in 476ms
I/Process ( 529): Sending signal. PID: 529 SIG: 9
I/ActivityManager( 149): Process com.android.vending (pid 529) has died.
W/ActivityManager( 149): Scheduling restart of crashed service com.android.vending/.LocalDbSyncService in 5000ms
W/UsageStats( 149): Unexpected resume of com.android.launcher while already resumed in com.android.vending
W/InputManagerService( 149): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43a65670
D/dalvikvm( 202): GC(2) freed 1331 objects / 76968 bytes in 114ms
I/ActivityManager( 149): Start proc com.twidroidpro:remote for service com.twidroidpro/.BackgroundService: pid=540 uid=10131 gids={3003, 1006, 1015}
I/ActivityManager( 149): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.xtralogic.android.logcollector/.SendLogActivity }
I/ActivityManager( 149): Start proc com.android.vending for service com.android.vending/.LocalDbSyncService: pid=546 uid=10031 gids={3003}
I/ActivityManager( 149): Start proc com.xtralogic.android.logcollector for activity com.xtralogic.android.logcollector/.SendLogActivity: pid=552 uid=10036 gids={1007, 1015}
I/ActivityThread( 546): Publishing provider com.android.vending.SuggestionsProvider: com.android.vending.SuggestionsProvider
D/vending ( 546): com.android.vending.LocalDbSyncService.run(): Syncing local DB with package manager...
D/Process ( 546): Setting SCHED_BATCH for pid: 562 prio: 10
D/dalvikvm( 552): GC(2) freed 787 objects / 72136 bytes in 147ms
W/dalvikvm( 546): threadid=17: thread exiting with uncaught exception (group=0x4001e1c0)
E/AndroidRuntime( 546): Uncaught handler: thread Vending-LocalDbSyncService exiting due to uncaught exception
E/AndroidRuntime( 546): android.database.sqlite.SQLiteException: duplicate column name: referrer: ALTER TABLE assets10 ADD COLUMN referrer TEXT
E/AndroidRuntime( 546): at android.database.sqlite.SQLiteDatabase.native_execSQL(Native Method)
E/AndroidRuntime( 546): at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1497)
E/AndroidRuntime( 546): at com.android.vending.api.LocalAssetDatabase$DatabaseHelper.onUpgrade(LocalAssetDatabase.java:918)
E/AndroidRuntime( 546): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:108)
E/AndroidRuntime( 546): at com.android.vending.api.LocalAssetDatabase.<init>(LocalAssetDatabase.java:116)
E/AndroidRuntime( 546): at com.android.vending.ServiceLocator.getLocalAssetDatabase(ServiceLocator.java:107)
E/AndroidRuntime( 546): at com.android.vending.LocalDbSyncService.syncLocalDbWithPackageManager(LocalDbSyncService.java:93)
E/AndroidRuntime( 546): at com.android.vending.LocalDbSyncService.run(LocalDbSyncService.java:83)
E/AndroidRuntime( 546): at java.lang.Thread.run(Thread.java:1060)
I/Process ( 149): Sending signal. PID: 546 SIG: 3
I/dalvikvm( 546): threadid=7: reacting to signal 3
I/dalvikvm( 546): Wrote stack trace to '/data/anr/traces.txt'
I/DumpStateReceiver( 149): Added state dump to 1 crashes
I/ARMAssembler( 149): generated scanline__00000077:03515104_00001A01_00000000 [ 46 ipp] (68 ins) at [0x362748:0x362858] in 793457 ns
D/dalvikvm( 540): GC(0) freed 3559 objects / 252984 bytes in 80ms
I/Process ( 546): Sending signal. PID: 546 SIG: 9
I/ActivityManager( 149): Process com.android.vending (pid 546) has died.
W/ActivityManager( 149): Service crashed 2 times, stopping: ServiceRecord{43a953d8 com.android.vending/.LocalDbSyncService}