added a little sql code