updated db from live site; fixed bugs in path_factory module up to do_replacement()