putting profile back into db token record
updated access token refresh logic