Added DB stats to the admin, minor code cleanup