finished backend of blog