Add basic UI to DataInteractive and refactor code

The javascript functions for inserting data (single table and parent-child tables) have been refactored and extracted out. A basic UI for data interactive has been added.