revise database schema and fix minor bugs in storage.jsp