SQLite wasn't enforcing uniqueness constraints on the user_guid field.