Ideally the iniated MySQLi or PDO connection should be passed via the constructor