initial db creation, script to purge, tests