phpmyvisites refactor / cleanup