changed DB class to return null instead of an exception