Remove counting from database adapter