Fix bug when using RDS and with the upload command on Flexiant