Hot to change resized image link on posts

The images are lost after i have used “forced thumbnail image ” plugin due to fact that it removed all resized images in the upload folder as i set default image sizes to 0. So i need to use original images on the posts instead of resized ones therefore i need to change every url in posts. I do not want to regenerate images tho. I have access to SSH however i prefer to use phpadmin to make this happen with sql commands if it is possible. thanks