Issue 147 - Bug - Move the db.js ,search.js to the back-end.

Move the db.js ,search.js to the back-end.
Modified the runServer.js ,updateBase.
Refer to #147