Add htaccess in resourec/sqlsync
Fix import bugs