.
Keep in mind that this could be a huge security hole for SQL injection. You'll need to ensure you escape everything coming back in that sqlLite DB. Then you'll also need a robust way to detect diffs.
It might be easier, if the user does not make that many changes, to just send back the differences and merge those.
Sincerely,
Joseph