updated DB class and associated
core