Abstracted database, added admin layout