fetchmapall was wrong. substituded by fetchallmap
implemented basic logging
substituded fetchmapone with fetchonemap
minor fixes