[what] Fix api.js does not use dashboard database
[why] Recduce insert raw log mongo queries time