change sql based on new db design
add member detail page