fixing dao problems on route loading
fixing entity exist exception