Recreates test database to use template