Added regexp for ignoring blank lines
Added check for empty data buckets
Added tests for data in staging tables
added data with multiple referernces