rotate tick labels in plots. fix integer division issue in queries