De-couple check for existing file with existing database record
Use config file, as pg settings are different
Do not enlargen pictures