Fixing keys and sample data insertion.