Add split_uid function to sqlite.
Add split_uid function to sqlite.

Syntax:
SPLIT_UID('name'|'origin', string)

Use:
This function is used to split unique_id to its components:

SPLIT_UID('name', 'name~origin') returns 'name'
SPLIT_UID('origin', 'name~origin') returns 'origin'

If an input string is not in format name~origin, then the full string is
returned.

Open343/pkg,khorben/pkg,skoef/pkg,skoef/pkg,Open343/pkg,khorben/pkg,khorben/pkg,en90/pkg,junovitch/pkg,junovitch/pkg,en90/pkg