fix delete method
on jersey. (problem with db connection)