increment path field in database up to 4000 (maximum for Oracle - otherwise we could use php's 4096)