Add database config from environment, and LocMem cache config