Design of Main Memory Database System/Query Optimization