LILY-1130 Correct creation of record table at startup

Also simplify table management CLI tools