misc refactoring
misc refactoring + add phpmyadmin