Preliminary support for database conversion
Fixed newformat command