Check for unique constraint in test, remove previous test db if it existed