main function finshed

use sqlite3 as main database,and add mongo-engine to soupport mongoDB.
add template add static.
the main function finshed.