I couldn't locate where the error was so I cloned from phpbridge repo at the point I am
Db access from anywhere with singleton
Introduction of models
Added up and down vote system and about page