[jaring] db: add profile id to tables.

Profile ID allow application to create sub-application.