complete site convert to mysqli and recovery some errors