Avoid static JDBC connections

changed db access to use a proper workspace resource and not the static access methods