added checks on most database functions to verify no errors before proccessing a request. Also changed level of access allowed on the website so that only owners of groups have certain functions