Forgot this script, wonder if it is useful without the db scheme at all.