Corrected system config defaults
Corrected file type for JPG
Showing actual error when database connection fails