cookie working. adding sql