Enable postgres, fix framework detection