adds admin functionality. admin can now CRUD posts
snapshot