Update DBService.java

better error handling