Adding cookie to database