Simple php class for MySQL queries