core & db_text: start to save some stuff ; core: remove useless function ; ldr_pe: fix typo