errorproofing tests

Checked if something is already running on tcp port 3000, reports on it and exits if it is.

Also check for existence of the db before moving it.