Update mysql info and reorganise folder layout