add student table and fix some bugs