Developing analytical database applications