add check of db types