[GEOS-5828] GWC - External Database issues (including security one)