Fixed compilation warnings
Refactored the way we store index in the index table
Implemented FLUSH command