Add nested logic for buildings and characters, add db  query_sets for buildings and characters on index.