stats now talks to the db, can create and view issues