FIX: resolved import views dependency order

Added code to decide the create view statements order, in resolving
dependency issues between views