Copydb to head