Added DB checking and resolved error on Linux

For some reason the error checking gave an error on my chromebook running XFCE Linux.
I changed it for now and will test more when I get home and have access to my
Windows machine and virtualboxes.

I also added some checking on models to see if the database is actually enabled
before we allowing querying and fetching
Fixed mod loading

Mods didn't load properly when they were loaded
when a HTTP POST Request was done because it simply
ran the controllers function before it load all mods.

I moved the loading of all mods from post-controller loading
to the initializing phase of the Loader itself.
That way I'm absolutely positive it will load properly.
Starting on the upload mod