documentation and switch to mysqli and parameterization of load() and delete()