Added AdminActivity and fixed some database errors