Fixed retrieve_sections to also seed db, fixed weights in calculate_scores