change absolute path to relative path in database