Add UPN support to sqlite HDB backend