able to fix the bug that wasnt loading the webpage when the database initialisation was added.