small modify
add foreign key
remove building_vote and detail that made mistake in tables.
modify tables