table script for usertable and coursetable