delete visitors, and console.log. refactoring post and get functions