[mr2857] Add steps in CalendarMgr::LoadFromDB(). Remove redundant var in Unit.h

author Den.
[mr2858] Fix searching for nearest creatures/gameobjects

BUG: if we have a few objects, returned first with the smallest guid, but not the closest.
This fixed many quests.
[mr2859] Small improvement for achievements save

Move out sqlStatements from loop.