Fixed few bugs. Added action code for Execute SQL.

Bugs:
Real-time code misplacement
Controllers now retrieve numbers in order.