fix home page learn portlet error
fix initialize database and template