basic ajax and writing to db + admin site