Added function to check query success in the Database class; Large update to the News class to use permissions and allow updating news