singleton class to work with mysql databases with mysqli