PHP-Mysql connector with Singleton class for REST services