Added several changes, including access policies for some requests and updated functions to make strings sql-safe to mysqli.