fix frontend api issue
change db to mongo