use a try and catch to require json files.
This should be faster than checking for the file, reading it and then parsing it, which is also done in sync.
Added an update for the mysql dependency.
Throw an error when the database config isn't found.
Allow for multi-domain.