And converted the sidebar script to a react component.
Also restructured the project a bit - created a service folder for the database script and the token script.