Fix some bugs

- Fix the name of database.
- Remove access to DB from "index.jsp" and use Controller instead.