Saving user visitors in database on localhost, using cookie