Added db scripts. Changed test and live db to use new format.