Added logger to DaoBase
Route auth code refactoring