Get access to token and implement db correctly