Added the install document and database and refactoring