updated DB classes to static functions;