db type check