fix some bug, ready for database
add module mongoose