Finally restructured the project to have a proper server, views, models. Not its easier to find things