cleaned up code creating blog and loading blog from profile page, removed booleans isBuilt, newPost and buildBlog() function from blog, changed insertBlogIntoDatabase() and insertPostIntoDatabase() and added addPost() function and getAuthor() function, PLEASE LOOK THROUGH CODE TO GET AN IDEA OF WHAT CAN BE CHANGED, also edits are not working but we should be able to use similar algorithm as jan used to load the blogs.