integrate oauth2
update permissions db layout