Add recreatedb function.