changed config for db to accomodate both mongo and pg