add indexes to key columns
adjust to code standards
add headers to csv export
change csv export