Put real file upload on hold, set up for pg use
Added test to check DB connection