remove checks from db functions