fixed db handler class