Changes to get the system working in linux servers
Fixed a bug where only databases hosted on localhost would work.
Fixed a syntax bug for < PHP 5.5