Add the php files to put in remote server. Export to external DB works now (with better checks of the real execution of the SQL on server) and maxId method works to
Put in static the maxId method
Fix merge.